#ifndef __INET_ADDR_H__
#define __INET_ADDR_H__

#include <string>
#include <stdint.h>

class CInterAddr
{
public:
    CInterAddr();
    CInterAddr(uint32_t dwIpAddress, uint16_t wPort);
    CInterAddr(const std::string& strIpAddress, uint16_t wPort);
    void InitAddr(uint32_t dwIpAddress, uint16_t wPort);
    uint32_t getAddress() const;
    const char *getHost() const;
    uint16_t getPort() const;
    CInterAddr(const CInterAddr &);
    CInterAddr operator =(const CInterAddr&);
private:
    char m_sBuffer[20];
    uint32_t m_dwIpAddress;
    uint16_t m_wPort;
};


#endif


